//
//  String+Emoticon.swift
//  EmoticonKeyBoard
//
//  Created by yang on 15/11/21.
//  Copyright © 2015年 yang. All rights reserved.
//

import Foundation

extension String {
    var emojiString:String{
        let scanner = NSScanner(string: self)
        var value : UInt32 = 0
        scanner.scanHexInt(&value)
        let char = Character(UnicodeScalar(value))
        return "\(char)"
    }
}